import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
import { QueryListDto } from 'src/common/dto';
export class StudycontentQueryDto extends QueryListDto {
  @ApiProperty({ description: '当前页数', example: 1 })
  pageNum: number;
  @ApiProperty({ description: '页面大小', example: 10 })
  pageSize: number;
  @ApiPropertyOptional({
    description: '关键字（模糊查询标题）',
    example: '学习',
  })
  keyword?: string;

  @ApiPropertyOptional({ description: '分类ID（可选）', example: 1 })
  sortId?: number;

  @ApiPropertyOptional({ description: '来源（可选）', example: 1 })
  source?: number;
  @ApiPropertyOptional({
    description: '所属部门编号（可选）',
    example: '1',
  })
  department?: string;
}
